﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="DacSanMienTay._Default" %>
        <%@ Import Namespace="DacSanMienTayOBJ" %>

<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<div class="slider">           
<div class="slider_box">
                    	<img src="images/sl_1.jpg">
                        <div class="slider_description">
                        	<div class="slider_t">                        	
                                <div class="slider_tensp">Đuông dừa Bến Tre</div>
                                <div class="slider_gia">30 000 vnd/kg</div>
                            </div>
                                
                            <div class="slider_xx">
                                <ul>
                                    <li>Xuất xứ: Bến Tre</li>
                                    <li>Qui cách: cân ký</li>
                                    <li>Còn: 30 kg</li>
                                </ul>
                        </div>
                        
                        <div class="slider_phone">
                        	<a href="">0903010943</a>
                        </div>
                        
                         <div class="bt_dathang"><a href="">Đặt hàng</a></div>
                        </div><!--end slider_description-->
                    </div><!--end slider_box-->
                    
                    <div class="slider_box">
                    	<img src="images/sl_4.jpg">
                        <div class="slider_description">
                        	<div class="slider_t">                        	
                                <div class="slider_tensp">Đuông dừa Bến Tre</div>
                                <div class="slider_gia">30 000 vnd/kg</div>
                            </div>
                                
                            <div class="slider_xx">
                                <ul>
                                    <li>Xuất xứ: Bến Tre</li>
                                    <li>Qui cách: cân ký</li>
                                    <li>Còn: 30 kg</li>
                                </ul>
                        </div>
                        
                        <div class="slider_phone">
                        	<a href="">0903010943</a>
                        </div>
                        
                         <div class="bt_dathang"><a href="">Đặt hàng</a></div>
                        </div><!--end slider_description-->
                    </div><!--end slider_box-->
                    
                    <div class="slider_box">
                    	<img src="images/sl_2.jpg">
                        <div class="slider_description">
                        	<div class="slider_t">                        	
                                <div class="slider_tensp">Đuông dừa Bến Tre</div>
                                <div class="slider_gia">30 000 vnd/kg</div>
                            </div>
                                
                            <div class="slider_xx">
                                <ul>
                                    <li>Xuất xứ: Bến Tre</li>
                                    <li>Qui cách: cân ký</li>
                                    <li>Còn: 30 kg</li>
                                </ul>
                        </div>
                        
                        <div class="slider_phone">
                        	<a href="">0903010943</a>
                        </div>
                        
                         <div class="bt_dathang"><a href="">Đặt hàng</a></div>
                        </div><!--end slider_description-->
                    </div><!--end slider_box-->
                    
                    <div class="slider_box_stay">
                    	<img src="images/sl_1.jpg">
                        <div class="slider_description">
							<div class="slider_t">                        	
                                <div class="slider_tensp">Đuông dừa Bến Tre</div>
                                <div class="slider_gia">30 000 vnd/kg</div>
                            </div>
                                
                            <div class="slider_xx">
                                <ul>
                                    <li>Xuất xứ: Bến Tre</li>
                                    <li>Qui cách: cân ký</li>
                                    <li>Còn: 30 kg</li>
                                </ul>
                        </div>
                        
                        <div class="slider_phone">
                        	<a href="">0903010943</a>
                        </div>
                        
                         <div class="bt_dathang"><a href="">Đặt hàng</a></div>
                        </div><!--end slider_description-->
                        
                        
                        
                        
                       
                    </div><!--end slider_box-->
                    
                    <div class="slider_box">
                    	<img src="images/sl_1.jpg">
                        <div class="slider_description">
                        	<div class="slider_t">                        	
                                <div class="slider_tensp">Đuông dừa Bến Tre</div>
                                <div class="slider_gia">30 000 vnd/kg</div>
                            </div>
                                
                            <div class="slider_xx">
                                <ul>
                                    <li>Xuất xứ: Bến Tre</li>
                                    <li>Qui cách: cân ký</li>
                                    <li>Còn: 30 kg</li>
                                </ul>
                        </div>
                        
                        <div class="slider_phone">
                        	<a href="">0903010943</a>
                        </div>
                        
                         <div class="bt_dathang"><a href="">Đặt hàng</a></div>
                        </div><!--end slider_description-->
                    </div><!--end slider_box-->

                     </div><!--end slider-->
 <div id="body_contain">

                <%
                    try
                    {
                        List<Product> listProduct = ProductBusiness.ListAllProduct(1,0, 30, ConnectionType.UserConnection);
                        int vt= 1;
                        foreach (Product product in listProduct)
                        {
                            if (vt > 2)
                            {
                                vt = 1;
                            }
                            string linkProduct = "";
                            string productName = product.ProductName;
                            string imageProduct = DacSanMienTay.Utility.modHost + "/" + product.ProductImage;
                            string original = "";
                            string measurement = product.MeasurementUnits;
                            float price = product.RealPrice;
                 %>
                   	<div class="product_big_box_<%=vt %>">
                    <a href="<%=linkProduct %>">
                    	<img src="<%=imageProduct %>" width="493px" height="297px">
                        </a>
                        <div class="product_big_box_info">
                        	<div class="product_name"><a href="<%=linkProduct %>" class="product_name"><%=productName %></a></div>
                            <div class="product_info">
                            	<ul>
                                	<li>Xuất xứ: <a href="#"><%=original %></li>
                                    <li>Qui cách: <%=measurement %></li>
                                    <li class="prise">Giá: <%=string.Format("{0:0,0}",price) %> vnđ</li>
                                </ul>
                            </div>
                            <div class="bt_dathang1"><a href="">Đặt hàng</a></div>
                        </div><!--end product_iog_box_info-->
                    </div><!--end product_big_box-->

                    <%
                        vt++;
                            
                        }
                    }
                    catch
                    {
                        
                    }
                         %>
                    
<%--                    <div class="product_big_box_2">
                    	<img src="images/sp2.jpg">
                        
                        <div class="product_big_box_info">
                        	<div class="product_name">Chùm ruột xanh</div>
                            <div class="product_info">
                            	<ul>
                                	<li>Xuất xứ: <a href="#">Đồng Tháp</li>
                                    <li>Qui cách: Bịch 500 gram</li>
                                    <li class="prise">Giá: 20 000 vnđ</li>
                                </ul>
                            </div>
                            <div class="bt_dathang1"><a href="">Đặt hàng</a></div>
                        </div><!--end product_iog_box_info-->
                    </div><!--end product_big_box-->
                    
                    <div class="product_big_box_1">
                    	<img src="images/sp3.jpg">
                        
                        <div class="product_big_box_info">
                        	<div class="product_name">Chùm ruột xanh</div>
                            <div class="product_info">
                            	<ul>
                                	<li>Xuất xứ: <a href="#">Đồng Tháp</li>
                                    <li>Qui cách: Bịch 500 gram</li>
                                    <li class="prise">Giá: 20 000 vnđ</li>
                                </ul>
                            </div>
                            <div class="bt_dathang1"><a href="">Đặt hàng</a></div>
                        </div><!--end product_iog_box_info-->
                    </div><!--end product_big_box-->
                    
                    <div class="product_big_box_2">
                    	<img src="images/sp4.jpg">
                        
                        <div class="product_big_box_info">
                        	<div class="product_name">Chùm ruột xanh</div>
                            <div class="product_info">
                            	<ul>
                                	<li>Xuất xứ: <a href="#">Đồng Tháp</li>
                                    <li>Qui cách: Bịch 500 gram</li>
                                    <li class="prise">Giá: 20 000 vnđ</li>
                                </ul>
                            </div>
                            <div class="bt_dathang1"><a href="">Đặt hàng</a></div>
                        </div><!--end product_iog_box_info-->
                    </div><!--end product_big_box-->--%>

             </div><!--end body_contain-->
</asp:Content>
